import request from "@/utils/request";

// 查询食品列表
export function getCookieList(data) {
  return request({
    url: "/cookie/list",
    method: "post",
    data,
  });
}

// 获取食品信息
export function getCookieInfo(params) {
  return request({
    url: "/cookie/detail",
    method: "get",
    params,
  });
}

// 更新食品信息
export function getCookieUpdate(data) {
  return request({
    url: "/cookie/update",
    method: "post",
    data,
  });
}

// 插入食品信息
export function getCookieInsert(data) {
  return request({
    url: "/cookie/insert",
    method: "post",
    data,
  });
}


// 删除食品信息
export function getCookieDelete(params) {
  return request({
    url: "/cookie/delete",
    method: "get",
    params,
  });
}
